import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

import Index from "@/components/index/Index"
import Login from '@/components/login/Login'
//
// const Index = resolve => require(['../components/index/Index.vue'], resolve);
// const Login = resolve => require(['../components/login/Login.vue'], resolve);



export default new Router({
  routes: [{
      path:'/',
      name:'default',
      components:{
        default:Index
      }
    },{
      path: '/login',
      name: 'Login',
      components: {
        default:Login,
      }
    },{
      path:'/index',
      name:'Index',
      components:{
        default:Index
      }
    }
  ]
})
